package com.memory.monitor.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.memory.monitor.common.DeleteRequest;
import com.memory.monitor.model.dto.area.AreaUpdateRequest;
import com.memory.monitor.model.dto.distribute.DistributeAddRequest;
import com.memory.monitor.model.dto.distribute.DistributeQueryRequest;
import com.memory.monitor.model.dto.distribute.DistributeUpdateRequest;
import com.memory.monitor.model.entity.Distribute;
import com.memory.monitor.model.vo.AreaVO;
import com.memory.monitor.model.vo.DistributeVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
* @author 21731
* @description 针对表【distribute( 产区分布)】的数据库操作Service
* @createDate 2024-09-02 09:59:36
*/
public interface DistributeService extends IService<Distribute> {
    /**
     * 获取Distribute信息
     *
     * @param distribute
     * @return
     */
    DistributeVO getdistributeVO(Distribute distribute);

    /**
     * 获取DistributeList信息
     *
     * @param distributeList
     * @return
     */
    List<DistributeVO> getdistributeVO(List<Distribute> distributeList);

    /**
     * 查询条件
     *
     * @param distributeQueryRequest
     * @return
     */
    QueryWrapper<Distribute> getQueryWrapper(DistributeQueryRequest distributeQueryRequest);


    /**
     * 增加查询条件
     *
     * @param distributeAddRequest
     * @return
     */
    Long addDistribute(DistributeAddRequest distributeAddRequest);

    /**
     * 修改查询条件
     *
     * @param distributeUpdateRequest
     * @return
     */

    Boolean updateDistribute(DistributeUpdateRequest distributeUpdateRequest);

    /**
     * 删除查询条件
     *
     * @param deleteRequest
     * @return
     */

    Boolean deleteDistribute(DeleteRequest deleteRequest);

    List<DistributeVO> listDistributeByPage();

    Boolean readExcel(MultipartFile multipartFile);

    Boolean writeExcel(String path);
}



